﻿using System;
using System.Linq;
using System.Text;
using SIE.SCADA.SqlSugar;

namespace Models
{
    ///<summary>
    ///过站主表
    ///</summary>
    [SugarTable("scada_sn_event_t")]
    public partial class scada_sn_event_t
    {
           public scada_sn_event_t(){


           }
           /// <summary>
           /// Desc:SN序列号
           /// Default:
           /// Nullable:True
           /// </summary>           
           public string Serial_Number_Str {get;set;}

           /// <summary>
           /// Desc:工单号
           /// Default:
           /// Nullable:True
           /// </summary>           
           public string DisidNo_Str {get;set;}

           /// <summary>
           /// Desc:工艺路线
           /// Default:
           /// Nullable:True
           /// </summary>           
           public string Tech_Process {get;set;}

           /// <summary>
           /// Desc:小版本
           /// Default:
           /// Nullable:True
           /// </summary>           
           public string Small_Version {get;set;}

           /// <summary>
           /// Desc:工序名称
           /// Default:
           /// Nullable:True
           /// </summary>           
           public string Disque_Name {get;set;}

           /// <summary>
           /// Desc:工步
           /// Default:
           /// Nullable:True
           /// </summary>           
           public string JobStep {get;set;}

           /// <summary>
           /// Desc:物料/工具
           /// Default:
           /// Nullable:True
           /// </summary>           
           public string JobStep_element {get;set;}

           /// <summary>
           /// Desc:物料/工具代码
           /// Default:
           /// Nullable:True
           /// </summary>           
           public string Element_CODE {get;set;}

           /// <summary>
           /// Desc:物料用量/工具次数
           /// Default:
           /// Nullable:True
           /// </summary>           
           public int? Element_qty {get;set;}

           /// <summary>
           /// Desc:描述
           /// Default:
           /// Nullable:True
           /// </summary>           
           public string Element_desc {get;set;}

           /// <summary>
           /// Desc:操作员ID
           /// Default:
           /// Nullable:True
           /// </summary>           
           public string Planerid {get;set;}

           /// <summary>
           /// Desc:开始时间
           /// Default:CURRENT_TIMESTAMP
           /// Nullable:True
           /// </summary>           
           public DateTime? Begintime {get;set;}

           /// <summary>
           /// Desc:结束时间
           /// Default:CURRENT_TIMESTAMP
           /// Nullable:True
           /// </summary>           
           public DateTime? Endtime {get;set;}

           /// <summary>
           /// Desc:状态，0:等待 1：进行中 2：完成 3：错误
           /// Default:
           /// Nullable:True
           /// </summary>           
           public int? STATUS {get;set;}

           /// <summary>
           /// Desc:工步id
           /// Default:
           /// Nullable:True
           /// </summary>           
           public int? JobStep_id {get;set;}

           /// <summary>
           /// Desc:类别（物料，工具，文件）
           /// Default:
           /// Nullable:True
           /// </summary>           
           public string Element_type {get;set;}

           /// <summary>
           /// Desc:
           /// Default:CURRENT_TIMESTAMP
           /// Nullable:True
           /// </summary>           
           public DateTime? createtime_dt {get;set;}

           /// <summary>
           /// Desc:
           /// Default:
           /// Nullable:True
           /// </summary>           
           public string createuser_str {get;set;}

           /// <summary>
           /// Desc:
           /// Default:CURRENT_TIMESTAMP
           /// Nullable:True
           /// </summary>           
           public DateTime? modifytime_dt {get;set;}

           /// <summary>
           /// Desc:
           /// Default:
           /// Nullable:True
           /// </summary>           
           public string remark_str {get;set;}

           /// <summary>
           /// Desc:
           /// Default:
           /// Nullable:True
           /// </summary>           
           public bool? isenable_bit {get;set;}

           /// <summary>
           /// Desc:
           /// Default:
           /// Nullable:True
           /// </summary>           
           public bool? isactive_bit {get;set;}

           /// <summary>
           /// Desc:
           /// Default:
           /// Nullable:True
           /// </summary>           
           public bool? issync_bit {get;set;}

           /// <summary>
           /// Desc:
           /// Default:nextval('"SCADA_SN_EVENT_T_ID_Seq"'::regclass)
           /// Nullable:False
           /// </summary>           
           [SugarColumn(IsPrimaryKey=true,IsIdentity=true)]
           public int ID {get;set;}

    }
}
